package com.ruipengkj.view.orderView.dish.cooking;

import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 12-8-1
 * Time: 下午2:02
 * To change this template use File | Settings | File Templates.
 */
public class CommodityExeAttr {
    public static final int EXE_ATTR_TYPE_SINGLE_CHOOSE = 1; // 表示单选，即选项中只能选择一个
    public static final int EXE_ATTR_TYPE_MULTI_CHOOSE = 2;//表示多选，即选项中可以选择多个，选择多个时用逗号隔开
    private String Name;
    private String Text;
    private int AttrType;
    private List<CommodityExeAttrOption> Options;

    public CommodityExeAttr(String name, String text, int attrType) {
        Name = name;
        Text = text;
        AttrType = attrType;
        Options = new ArrayList();
    }

    public void addOption(CommodityExeAttrOption _option)
    {
        Options.add(_option);
    }

    public String getName() {
        return Name;
    }

    public String getText() {
        return Text;
    }

    public int getAttrType() {
        return AttrType;
    }

    public List<CommodityExeAttrOption> getOptions() {
        return Options;
    }
}
